package com.catersystem.zmy.catersystem.bean;

/**
 * Created by Administrator on 2017/12/7 0007.
 */

public class LatelyCompleteDishesBean {

    /**
     * id : 22
     * item_name : 海鲜2
     * spunit : 份
     * amount : 1.00
     * taste :
     * timestamp : 2017-12-07 12:00:14
     */

    private int id;
    private String item_name;
    private String spunit;
    private String amount;
    private String taste;
    private String timestamp;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getItem_name() {
        return item_name;
    }

    public void setItem_name(String item_name) {
        this.item_name = item_name;
    }

    public String getSpunit() {
        return spunit;
    }

    public void setSpunit(String spunit) {
        this.spunit = spunit;
    }

    public String getAmount() {
        if (Float.parseFloat(amount) % 1 == 0) {
            return ((int) Float.parseFloat(amount)) + "";
        }
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getTaste() {
        return taste;
    }

    public void setTaste(String taste) {
        this.taste = taste;
    }


    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }
}
